Optimal. Leaf size=62 \[ \frac {b \sqrt {x}}{2 c^3}+\frac {b x^{3/2}}{6 c}-\frac {b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 c^4}+\frac {1}{2} x^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {6037, 52, 65,
212} \begin {gather*} \frac {1}{2} x^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )-\frac {b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 c^4}+\frac {b \sqrt {x}}{2 c^3}+\frac {b x^{3/2}}{6 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 212
Rule 6037
Rubi steps
\begin {align*} \int x \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right ) \, dx &=\frac {1}{2} x^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )-\frac {1}{4} (b c) \int \frac {x^{3/2}}{1-c^2 x} \, dx\\ &=\frac {b x^{3/2}}{6 c}+\frac {1}{2} x^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )-\frac {b \int \frac {\sqrt {x}}{1-c^2 x} \, dx}{4 c}\\ &=\frac {b \sqrt {x}}{2 c^3}+\frac {b x^{3/2}}{6 c}+\frac {1}{2} x^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )-\frac {b \int \frac {1}{\sqrt {x} \left (1-c^2 x\right )} \, dx}{4 c^3}\\ &=\frac {b \sqrt {x}}{2 c^3}+\frac {b x^{3/2}}{6 c}+\frac {1}{2} x^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )-\frac {b \text {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\sqrt {x}\right )}{2 c^3}\\ &=\frac {b \sqrt {x}}{2 c^3}+\frac {b x^{3/2}}{6 c}-\frac {b \tanh ^{-1}\left (c \sqrt {x}\right )}{2 c^4}+\frac {1}{2} x^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 88, normalized size = 1.42 \begin {gather*} \frac {b \sqrt {x}}{2 c^3}+\frac {b x^{3/2}}{6 c}+\frac {a x^2}{2}+\frac {1}{2} b x^2 \tanh ^{-1}\left (c \sqrt {x}\right )+\frac {b \log \left (1-c \sqrt {x}\right )}{4 c^4}-\frac {b \log \left (1+c \sqrt {x}\right )}{4 c^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 69, normalized size = 1.11
method | result | size |
derivativedivides | \(\frac {\frac {c^{4} x^{2} a}{2}+\frac {b \,c^{4} x^{2} \arctanh \left (c \sqrt {x}\right )}{2}+\frac {b \,c^{3} x^{\frac {3}{2}}}{6}+\frac {b c \sqrt {x}}{2}+\frac {b \ln \left (c \sqrt {x}-1\right )}{4}-\frac {b \ln \left (1+c \sqrt {x}\right )}{4}}{c^{4}}\) | \(69\) |
default | \(\frac {\frac {c^{4} x^{2} a}{2}+\frac {b \,c^{4} x^{2} \arctanh \left (c \sqrt {x}\right )}{2}+\frac {b \,c^{3} x^{\frac {3}{2}}}{6}+\frac {b c \sqrt {x}}{2}+\frac {b \ln \left (c \sqrt {x}-1\right )}{4}-\frac {b \ln \left (1+c \sqrt {x}\right )}{4}}{c^{4}}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 69, normalized size = 1.11 \begin {gather*} \frac {1}{2} \, a x^{2} + \frac {1}{12} \, {\left (6 \, x^{2} \operatorname {artanh}\left (c \sqrt {x}\right ) + c {\left (\frac {2 \, {\left (c^{2} x^{\frac {3}{2}} + 3 \, \sqrt {x}\right )}}{c^{4}} - \frac {3 \, \log \left (c \sqrt {x} + 1\right )}{c^{5}} + \frac {3 \, \log \left (c \sqrt {x} - 1\right )}{c^{5}}\right )}\right )} b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 70, normalized size = 1.13 \begin {gather*} \frac {6 \, a c^{4} x^{2} + 3 \, {\left (b c^{4} x^{2} - b\right )} \log \left (-\frac {c^{2} x + 2 \, c \sqrt {x} + 1}{c^{2} x - 1}\right ) + 2 \, {\left (b c^{3} x + 3 \, b c\right )} \sqrt {x}}{12 \, c^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \left (a + b \operatorname {atanh}{\left (c \sqrt {x} \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 239 vs.
\(2 (46) = 92\).
time = 0.45, size = 239, normalized size = 3.85 \begin {gather*} \frac {1}{2} \, a x^{2} + \frac {2}{3} \, b c {\left (\frac {\frac {3 \, {\left (c \sqrt {x} + 1\right )}^{2}}{{\left (c \sqrt {x} - 1\right )}^{2}} - \frac {3 \, {\left (c \sqrt {x} + 1\right )}}{c \sqrt {x} - 1} + 2}{c^{5} {\left (\frac {c \sqrt {x} + 1}{c \sqrt {x} - 1} - 1\right )}^{3}} + \frac {3 \, {\left (\frac {{\left (c \sqrt {x} + 1\right )}^{3}}{{\left (c \sqrt {x} - 1\right )}^{3}} + \frac {c \sqrt {x} + 1}{c \sqrt {x} - 1}\right )} \log \left (-\frac {\frac {c {\left (\frac {c \sqrt {x} + 1}{c \sqrt {x} - 1} + 1\right )}}{\frac {{\left (c \sqrt {x} + 1\right )} c}{c \sqrt {x} - 1} - c} + 1}{\frac {c {\left (\frac {c \sqrt {x} + 1}{c \sqrt {x} - 1} + 1\right )}}{\frac {{\left (c \sqrt {x} + 1\right )} c}{c \sqrt {x} - 1} - c} - 1}\right )}{c^{5} {\left (\frac {c \sqrt {x} + 1}{c \sqrt {x} - 1} - 1\right )}^{4}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.17, size = 49, normalized size = 0.79 \begin {gather*} \frac {\frac {b\,c^3\,x^{3/2}}{6}-\frac {b\,\mathrm {atanh}\left (c\,\sqrt {x}\right )}{2}+\frac {b\,c\,\sqrt {x}}{2}}{c^4}+\frac {a\,x^2}{2}+\frac {b\,x^2\,\mathrm {atanh}\left (c\,\sqrt {x}\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________